package com.cgwx.service;

import com.cgwx.data.dto.UserRoomDto;
import com.cgwx.entity.Room;
import com.cgwx.entity.UserRoom;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.sql.Timestamp;
import java.util.List;

@Service
public interface IUserRoomService {

    @Transactional
    String freeRoomInsertStaff(String account, String deptId, String entityId, List<String> accountList);

    @Transactional
    String freeRoomDeleteStaff(String account, String deptId, String entityId, List<String> accountList);

    List<UserRoomDto> getUserRoomById(String entityRoom);

    String insertUserRoom(String account, String entityId, String entityRoom, Timestamp time);

    List<Room> getMyManageFreeRoomInfo(String account, String keyword, String column, String sort);

    List<UserRoomDto> getMyFreeRoomInfo(String account, String keyword, String column, String sort);

    boolean deleteUserRoomById(String entityRoom);
}
